﻿@using yeubongda
@using yeubongda.Models

        <div class="sh15px"></div>
        <div class="fllw100">
        @{ List<MENU> listMenuCha = YBDModels.DocmenuCha();}
        @for(int i=0;i<5;++i)
        {
                 List<MENU> listMenuCon = YBDModels.DocmenuCon(listMenuCha[i].MAMN);
                 List<BAIBAO> listBaiBao = YBDModels.DocBaiBaoMoiNhatTheoMenu(listMenuCha[i].MAMN);
                <div class="N_CateItem">
                    <div class="fll N_CateTopbg"></div>
                    <div class="sh5px"></div>
                    <div class="fll N_CateName">
                        <img src="./Content/Images/@listMenuCha[i].logo" style="height:20px;width:20px;border-width:0px;">
                        <a href="/Home/BaiBaoTheoMenuCha/@listMenuCha[i].MAMN">@listMenuCha[i].TENMN</a>
                    </div>
                    <div class="sh10px"> </div>
                    <div class="fll N_CateNewImage">
                        <a title="@listBaiBao.First().TENBAI" href="@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao.First().MABAI)">
                        <img class="NImage" src="@Url.Content("~/Content/images/" + listBaiBao.First().hinhanh)" align="left" style="border-width:0px;"></a>
                    </div>
                    <div class="fll N_CateNewTitle">
                        <a title="@listBaiBao.First().TENBAI" href="@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao.First().MABAI)">@listBaiBao.First().TENBAI</a>
                    </div>
                    <div class="fll N_CateNewSummury">
                        <span class="summary"> @listBaiBao.First().TIEUDE</span>
                    </div>
                </div>
        }
        </div>
        <div class="sh15px"></div>
        <div class="advHome">
            <div >
                <a href="http://tapchibongda.com.vn/bao-gia-quang-cao.aspx" target="_blank">
                    <script type="text/javascript">                    loadImgAdv("@Url.Content("~/Content/Images/danhchoqc.gif")", '696', '63');  </script>
                </a>
            </div>
        </div>
        <div class="sh10px"></div>
        
        <div class="advHome">
            <div >
                <a href="http://home.manutd.com.vn/" target="_blank">
                <script type="text/javascript">                    loadImgLinkDirectAdv("@Url.Content("~/Content/Images/manutd_com_vn_468_60.jpg")", '490', '60');  </script>
                </a>
                <a href="http://tipbongda.tapchibongda.com.vn/tip.aspx" target="_blank">
                <script type="text/javascript">                    loadImgLinkDirectAdv("@Url.Content("~/Content/Images/m88-chelsea.gif")", '205', '60');  </script>
                </a>
                <a href="http://www.chelseafc.com.vn/" target="_blank">
                <script type="text/javascript">                    loadImgLinkDirectAdv("@Url.Content("~/Content/Images/Hoi-co-dong-vien-Chelsea-tai-Viet-Nam.jpg")", '490', '60');  </script>
                </a>
                <a href="http://tipbongda.tapchibongda.com.vn/tip.aspx" target="_blank">
                <script type="text/javascript">                    loadImgLinkDirectAdv("@Url.Content("~/Content/Images/Free tip.jpg")", '205', '60');  </script>
                </a>
            </div>
        </div>
        <div class="sh10px"></div>
        
    @for (int i = 0; i < listMenuCha.Count; ++i)
    {
        List<MENU> listMenuCon = YBDModels.DocmenuCon(listMenuCha[i].MAMN);
                
        <div class="fllw100">
            <div class="fll N_Title">
                <div class="fll NTitleLeft"></div>
                <div class="fll IConCategory">
                    <img src="./Content/Images/@listMenuCha[i].logo" style="border-width:0px;">
                </div>
                <div class="fll NTitleRepeat">
                    <a class="NameCate_style" href="@Url.Content("~/Home/BaiBaoDetail/" + listMenuCha[i].MAMN)">@listMenuCha[i].TENMN</a>
                </div>
                <div class="fll NTitleRight"></div>
                <div class="fll NTitleList">
                    @for (int j = 0; j < listMenuCon.Count; ++j)
                    {
                        <div class="CateItem" style="background:none;">
                            <a href="@Url.Content("~/Home/BaiBaoTheoMenuCon/" + listMenuCon[j].MAMN)">@listMenuCon[j].TENMN</a>
                        </div>
                    }
                </div>
            </div>
            <div class="fll N_Repeat">
                <div class="fll N_RepeatContent">
                    @{List<BAIBAO> listBaiBao = YBDModels.DocBaiBaoMoiNhatTheoMenu(listMenuCha[i].MAMN);}
                    <div class="fll N_ContentFocus">
                                <a title="@listBaiBao.First().TENBAI" class="TitleNewList" href="@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao.First().MABAI)">@listBaiBao.First().TENBAI</a>
                                <span class="NDate"> &nbsp;@listBaiBao.First().Ngay</span>
                                <div class="sh5px"></div>
                                <div class="fllw100">
                                    <a title="@listBaiBao.First().TENBAI" href="@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao.First().MABAI)">
                                    <img class="NImage" src="./content/images/@listBaiBao.First().hinhanh" alt="@listBaiBao.First().TENBAI" align="left" style="border-width:0px;"></a>
                                    <span class="NSummury">@listBaiBao.First().TIEUDE</span>
                                </div>
                    </div>
                    <div class="fll N_ContentList">
                        @for (int k = 1; k < 5; ++k)
                        {
                                <div class="NListItem">
                                    <a title="@listBaiBao[k].TENBAI" href="@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao[k].MABAI)">@listBaiBao[k].TENBAI</a>
                                    <span class="NDate"> &nbsp;@listBaiBao[k].Ngay</span>
                                </div>
                        }
                    </div>
                </div>
                <div class="sh10px">
                </div>
            </div>
            <div class="fll N_foot"></div>
            <div class="sh15px"></div>
        </div>
    }
